<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */
require_once('com/fabriciojf/action/Action.class.php');
require_once('com/fabriciojf/include/Pagina.class.php');
class PegarPostsAction implements Action {

    public function execute() {
        $pagina = $_GET['nopagina'];
        $_REQUEST['posts'] = Pagina::paging($pagina, 'Post');
        require_once('com/fabriciojf/view/Home.php');
    }
}
?>
